package com.cazor.dgjq.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cazor.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cazor.common.core.domain.BaseEntity;

/**
 * 酒泉历史数据长传记录对象 dgjq_his_data_req_list
 *
 * @author ruoyi
 * @date 2024-05-16
 */
@TableName("dgjq_his_data_req_list")
public class DgjqHisDataReqList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 流水号 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 请求内容 */
    @Excel(name = "请求内容")
    private String req;

    /** 返回内容 */
    @Excel(name = "返回内容")
    private String resp;

    /** 返回代码 */
    @Excel(name = "返回代码")
    private Integer code;

    /** 是否成功 */
    @Excel(name = "是否成功")
    private String success;

    /** 传感器id */
    @Excel(name = "传感器id")
    private String sensorId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setReq(String req)
    {
        this.req = req;
    }

    public String getReq()
    {
        return req;
    }
    public void setResp(String resp)
    {
        this.resp = resp;
    }

    public String getResp()
    {
        return resp;
    }
    public void setCode(Integer code)
    {
        this.code = code;
    }

    public Integer getCode()
    {
        return code;
    }
    public void setSuccess(String success)
    {
        this.success = success;
    }

    public String getSuccess()
    {
        return success;
    }
    public void setSensorId(String sensorId)
    {
        this.sensorId = sensorId;
    }

    public String getSensorId()
    {
        return sensorId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("req", getReq())
                .append("resp", getResp())
                .append("code", getCode())
                .append("success", getSuccess())
                .append("sensorId", getSensorId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
